{% extends "admin_base.html" %}

{% block title %}添加目录{% endblock %}

{% block content %}
  <form method="post">{% csrf_token %}
    <fieldset>
      <legend>添加目录</legend>
      <div><label for="name">目录名</label>{{ form.name }}</div>
      <div><label for="slug">slug</label>{{ form.slug }}</div>
      <div><input type="submit" value="保存" /></div>
    </fieldset>
    {% for field in form %}
      {{ field.errors }}
    {% endfor %}
  </form>
{% endblock %}
